export default {
  data() {
    return {}
  },
  computed: {},
  methods: {},
  filters: {
    todoSalaryStateFilter(status, type) {
      let tagInfo = {}
      switch (`${status}`) {
        case '0':
          tagInfo = {
            tag: 'default',
            text: '编辑中'
          }
          break
        case '10':
          tagInfo = {
            tag: 'warning',
            text: '审批中'
          }
          break
        case '20':
          tagInfo = {
            tag: 'success',
            text: '审批通过'
          }
          break
      }
      return type === 'text' ? tagInfo.text : tagInfo.tag
    },
    employeeStatus(status, type) {
      let tagInfo = {}
      switch (`${status}`) {
        case '0':
          tagInfo = {
            tag: 'success',
            text: '在职'
          }
          break
        case '1':
          tagInfo = {
            tag: 'warning',
            text: '待离职'
          }
          break
        case '20':
          tagInfo = {
            tag: 'danger',
            text: '离职'
          }
          break
      }
      return type === 'text' ? tagInfo.text : tagInfo.tag
    },
    auditResultStatusFilter(status, type) {
      let tagInfo = {}
      switch (`${status}`) {
        case '1':
          tagInfo = {
            tag: 'success',
            text: '同意'
          }
          break
        case '0':
          tagInfo = {
            tag: 'danger',
            text: '退回'
          }
          break
      }
      return type === 'text' ? tagInfo.text : tagInfo.tag
    },
    uniformTypeFilter(type) {
      let text = ''
      switch (`${type}`) {
        case '4':
          text = '四件套'
          break
        case '6':
          text = '六件套'
          break
      }
      return text
    }
  }
}
